﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit0.aspx.cs" Inherits="JumbotCms.WebFile.Admin._classedit0" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<link type="text/css" rel="stylesheet" href="../../admin/otherpage/styles/common.css" />
<script type="text/javascript" src="../../_data/SysConfig.js"></script>
<script type="text/javascript" src="../../_libs/jquery-min.js"></script>
<script type="text/javascript" src="../../scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="../../style/global.css" />
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.formvalidator/style.css" />
<script type="text/javascript" src="../../_libs/jquery.formvalidator.js"></script>

<script type="text/javascript">
var ccid = joinValue('ccid');
$(document).ready(function(){
	$.formValidator.initConfig({onError:function(msg){}});
	$("#txtTitle").formValidator({tipid:"tipTitle",onshow:"请输入栏目名称",onfocus:"请输入4-30个字符(2-15个汉字)",oncorrect:""}).InputValidator({min:4,max:30,onerror:"请输入4-30个字符(2-15个汉字)"});
	$("#txtPageSize").formValidator({tipid:"tipPageSize",onshow:"请填写5-50的数字,推荐20",onfocus:"请填写5-50的数字,推荐20",oncorrect:""}).RegexValidator({regexp:"^\([5-9]{1}|[1-4]{1}[0-9]{1}|50)$",onerror:"请填写5-50的数字"});
	$("#txtNumber").formValidator({tipid:"tipNumber",onshow:"请填写数字和英文字母，可选择不填",onfocus:"请填写数字和英文字母，可选择不填",oncorrect:""}).RegexValidator({regexp:"^\([0-9a-zA-Z]*)$",onerror:"请填写数字和英文字母，可不填"});
	$("#txtOutUrl").formValidator({tipid:"tipOutUrl",onshow:"为空表示系统默认链接地址",onfocus:"以/开头，后缀为.aspx，路径一定要在程序目录内",oncorrect:""}).RegexValidator({regexp:"^\(/[_\-a-zA-Z0-9\.]+(/{1}[_\-a-zA-Z0-9\.]+)?\.aspx|(.){0})$",onerror:"格式如:/html/aa/download.aspx"});
});
    </script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return jQuery.formValidator.PageIsValid('1')">
	<table class="formtable">
		<tr>
			<th> 栏目名称 </th>
			<td><asp:TextBox ID="txtTitle" runat="server" MaxLength="20" Width="120px" CssClass="ipt"></asp:TextBox>
				<div class="ValidatorTip" id="tipTitle" style="width:250px"> </div></td>
		</tr>
		<tr>
			<th> 副标题/栏目编码</th>
			<td><asp:TextBox ID="txtNumber" runat="server" MaxLength="20" Width="80px" CssClass="ipt"></asp:TextBox>
				<div class="ValidatorTip" id="tipNumber" style="width:250px"> </div></td>
		</tr>
		<tr>
			<th> 所属分类 </th>
			<td><asp:DropDownList ID="ddlClass" runat="server"> </asp:DropDownList>
				(该频道只支持<%=ChannelClassDepth %>级分类) </td>
		</tr>
		<tr>
			<th> 最低浏览权限 </th>
			<td><asp:DropDownList ID="ddlReadGroup" runat="server"> </asp:DropDownList>
			(此功能在静态生成的频道无效) 
			</td>
		</tr>
		<tr>
			<th> 栏目简介 </th>
			<td><asp:TextBox ID="txtInfo" runat="server" Width="300px" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 列表页模板 </th>
			<td><asp:DropDownList ID="ddlTemplate" runat="server"> </asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 内容页模板 </th>
			<td><asp:DropDownList ID="ddlTemplate2" runat="server"> </asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 每页记录数 </th>
			<td><asp:TextBox ID="txtPageSize" runat="server" Width="39px" CssClass="ipt">20</asp:TextBox>
				<div class="ValidatorTip" id="tipPageSize" style="width:250px"> </div></td>
		</tr>
		<tr>
			<th> 允许<% = site.UserItem %>发布</th>
			<td><asp:RadioButtonList ID="rblIsPost" runat="server" EnableViewState="False" RepeatColumns="2">
					<Items>
						<asp:ListItem Value="1">是</asp:ListItem>
						<asp:ListItem Value="0" Selected="True">否</asp:ListItem>
					</Items>
				</asp:RadioButtonList></td>
		</tr>
		<tr>
			<th> 允许在导航菜单显示</th>
			<td><asp:RadioButtonList ID="rblTop" runat="server" EnableViewState="False" RepeatColumns="2">
					<Items>
						<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
						<asp:ListItem Value="0">否</asp:ListItem>
					</Items>
				</asp:RadioButtonList></td>
		</tr>
		<tr style="display:none;">
			<th> 自定义文件路径 </th>
			<td><asp:TextBox ID="txtOutUrl" runat="server" Width="300px" CssClass="ipt"></asp:TextBox>
				<div class="ValidatorTip" id="tipOutUrl" style="width:250px"> </div></td>
		</tr>
	</table>
	<div class="buttonok">
		<asp:Button ID="btnSave" runat="server" Text="确定" CssClass="btnsubmit" />
		<input id="btnReset" type="button" value="取消" class="btncancel" onclick="parent.JumbotCms.Popup.hide();" />
	</div>
</form>
<script>jcms$$SetDialogTitle();</script>
</body>
</html>
